﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PortfolioApp.DataModels
{
    public class Project
    {
        public int Id { get; set; }
        public string ApplicationUserId { get; set; }
        //public virtual ApplicationUser ApplicationUser { get; set; }

        public string Title { get; set; }
        public string Description { get; set; }
        public string ImageUrl { get; set; }
        public string ProjectUrl { get; set; }
        public long TimeStamp { get; set; }

        public Project()
        {

        }
        public Project(string userId, string title, string description, string imageUrl, string projectUrl)
        {
            ApplicationUserId = userId;
            Title = title;
            Description = description;
            ImageUrl = imageUrl;
            ProjectUrl = projectUrl;

        }
        public void SetProperties(Project project)
        {
            Title = project.Title;
            Description = project.Description;
            ImageUrl = project.ImageUrl;
            ProjectUrl = project.ProjectUrl;

        }
    }
}
